package com.example.demo.threadTest;

/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2022/8/12 10:41
 */
public class MyThread extends Thread {

    private String name;

    public MyThread(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for(int i = 0 ; i < 10 ; i++) {
            System.out.println(this.name + "正在工作中……" + i);
        }
    }
}
